home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ms-0_06.lha / xms-0.06 / MamaP.h < prev    next >
C/C++ Source or Header  |  1991-06-27  |  1KB  |  43 lines

  1. /* MamaP.h - private header for MandelSpawn master widget */
  2. /* Copyright (C) 1990, 1991 Andreas Gustafsson */
  3.  
  4. #ifndef _MamaP_h
  5. #define _MamaP_h
  6.  
  7. #include "Ms.h" /* public header of child widget */
  8. #include "Mama.h"
  9. #include "work.h"
  10.  
  11. /* widget instance structure */
  12. typedef struct 
  13. { struct wf_state *workforce;    /* X-independent slave handling stuff */
  14.   unsigned n_hues;        /* max. iterations */
  15.   unsigned n_colours;        /* number of colours */
  16.   char *spectrum;        /* text definitions of our colours */
  17.   XtInputId input_id;        /* unique channel id */
  18.   unsigned long *pixels;    /* pixel values for our colours */
  19.   unsigned n_popups_created;    /* number of popups created (not existing) */
  20.   Bool bw;            /* force black-and-white operation */
  21.   Colormap my_colormap;        /* may be the default colormap */
  22.   Bool wrap;            /* wrap colourmap when too few colours */
  23.   Bool debug;            /* debugging mode */
  24. } MamaPart;
  25.  
  26. typedef struct _MamaRec 
  27. { CorePart    core;
  28.   MamaPart    mama;
  29. } MamaRec;
  30.  
  31. /* Widget class structure */
  32. typedef struct 
  33. { int dummy;
  34. } MamaClassPart;
  35.  
  36. typedef struct _MsClassRec 
  37. { CoreClassPart core_class;
  38.   MamaClassPart mama;
  39. } MamaClassRec;
  40.  
  41. extern MamaClassRec mamaClassRec;
  42. #endif /* _MamaP_h */
  43.